package com.quanshu.shop.goods.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.quanshu.exchange.ui.base.BaseFragment;

import java.util.List;

/**
 * 作者  李哲
 * 创建时间 2018/7/25
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
public class GoodsInfoViewPagerAdapter extends FragmentPagerAdapter {
    private List<BaseFragment> baseFragmentList;

    public GoodsInfoViewPagerAdapter(FragmentManager fm, List<BaseFragment> baseFragmentList1) {
        super(fm);
        baseFragmentList = baseFragmentList1;
    }

    @Override
    public Fragment getItem(int position) {
        return baseFragmentList.get(position);
    }

    @Override
    public int getCount() {
        return baseFragmentList.size();
    }
}
